<html>
    <head>
        <link type="text/css" rel="stylesheet" href="/stylesheets/main.css"/>
    </head>
    <body>
        {% for greeting in greetings %}
            <div>
            {% if greeting.author %}
                <b>{{ greeting.author.nickname }}</b> wrote:
            {% else %}
                 An anonymous wrote:
            {% endif %}
                <blockquote>{{ greeting.content|escape }}</blockquote>
            </div>
         {% endfor %}
        
         <form action="/sign" method="post">
             <div>
                 <textarea name="content" rows="3" cols="60"></textarea>
             </div>
             <div><input type="submit" value="Sign Guestbook"></div>
         </form>

         <a href="{{ url }}">{{ url_linktext }}</a>
    </body>
</html>
